﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Shopping Cart - Electronic all'ingrosso</title>
<link href="../Public/css/cart_2.css" rel="stylesheet" type="text/css">
<link href="../Public/css/index_base.css" rel="stylesheet" type="text/css">
<link href="../Public/css/validatebox.css" media="screen" type="text/css" rel="stylesheet">
<link href="../Public/css/linkbutton.css" media="screen" type="text/css" rel="stylesheet">
<link href="../Public/css/panel.css" media="screen" type="text/css" rel="stylesheet">
<link href="../Public/css/window.css" media="screen" type="text/css" rel="stylesheet">
<link href="../Public/css/messager.css" media="screen" type="text/css" rel="stylesheet">
<load href="./Public/Js/jquery.min.js"/>
</head>
<body>
<div id="page_1">
    <form method="post" action="" name="form1" id="form1">
    <!-- START HEADER -->
    <div class="top_cart">
        <div class="logo">
       <a href="http://www.{$domain}" >
                    <img src="http://www.{$domain}/images/logo.gif" width="221" height="40"></a>
        </div>
 <div class="toprg"><img src="../Public/images/top.gif" /></div>
 <div class="line"></div>
<div class="topte">
                <a href="#">Casa</a> >> <a href="http://www.{$domain}" >
                    Continua lo shopping</a></div>
  </div>


    <div class="clear" style="margin-top:8px;">
    </div>
    <div class="clear">
    </div>
    <!-- END IF USER IS LOGIN -->
    <!-- START PRODUCT LIST -->
    <div class="content_column">
        <div class="title">
          <ul>
                <li class="frist">Product ID</li>
                <li class="second">prezzo unitario</li>
                <li class="third">Q.tà</li>
                <li class="fourth">Prodotto</li>
                <li class="fifth">Totale</li>
                <li class="sixth">Elimina</li>
          </ul>
          <span class="column_title_left"><img src="../Public/images/column_title_left_1.jpg" width="52" height="38" /></span><span class="column_title_right"></span>
      </div>
        <div class="column_content">
            <div id="cartlist">
                <span id="lblTableCart">
				<table id="TableCart" style="margin-left: 10px; padding-top:5px;" border="0" cellspacing="0">
				<tbody>
<volist name="a" id="cart">
		<tr class="column_list">
		<td class="one"></td>
		<td class="two"><b>{$cart.productcode}</b></td>
		<td class="three">{$currency} {$cart.price|number_format=###,2}</td>
		<td class="four" style="vertical-align:middle;">
		<input type="hidden" name="domain" id="domain" value="{@a.domain}" />
		<input type="hidden" name="currency_code" id="currency_code" value="{$currency_code}" />
		<input id="num{$cart.productcode}" name="n_{$cart.productcode}"  type="text" size="5" value="{$cart.num}" onChange="ChangeTotal(this);" maxlength="5" />
		<input class="cen" type="image" name="submit" src="../Public/images/button_change.gif" /> </td>
		<td class="five"><p>{$cart.pbody}</p></td>
		<td class="six">{$currency} <span id="allprice{$cart.pid}">{$cart.n_price|number_format=###,2}</span></td>
		<td class="seven color2"><a href="?a=delid&pidmo={$cart.productcode}&domain={@a.domain}&currency_code={$currency_code}"><img src="../Public/images/button_remove_product.gif" /></a></td>
		</tr>
</volist>
				</tbody>
				</table>
				</span>
            </div>
            <div class="table_bottom" id="Shipping_div" style="">
                <div>
                    <span class="bottom_two">
                      
                        <p style="padding-left:10px;"><a href="http://www.{$domain}" ><img src="../Public/images/continue_it.gif" /></a></p>
                    </span>
                    <span class="bottom_three">
                        <span id="Literal1" class="aspNetDisabled">{$currency} {$a_price|number_format=###,2}</span>
                    </span></div>
            </div>
           
    </div>
    <!-- END PRODUCT LIST -->
    <!-- START TRANSPORTATION -->
    <div class="ship_ifo">
        <div class="clear">
        </div>
        <img src="../Public/images/shopping_cart2.jpg" alt="" class="img_left">
        <div class="ship_ifo_left">
            
            <p class="left_p1">
                <label>Selezionare la modalità di trasporto  ：</label>
                 <select id="ListBoxShipping" size="4" onchange="shipping(this.value)">
				<option selected="selected" value="Air Mail,{@a.logisticsprice1}">Air Mail({$currency}{@a.logisticsprice1})</option>
				<option value="UPS/EMS Express,{@a.logisticsprice2}">UPS/DHL Express({$currency}{@a.logisticsprice2})</option>
				</select>
            </p>
            <p class="left_p5" id="AirMail_P">
            </p>
<div class="left_p6" style="display: none">
                <input id="ckpcode" type="checkbox"><label for="ckpcode">Use Coupon</label>
                <div id="pCoupon" style="display: none; height: auto;">
                    <div>
                        <input class="text_t" id="txtCoupon" onclick="this.value=''" type="text">
                        <input value="" class="text_i" onclick="javascript:couponOrder()" type="button"></div>
                </div>
                <div style="padding-left: 0px; height: auto; line-height: 16px;">
                    <table cellpadding="0" cellspacing="0">
                        <tbody><tr>
                            <td style="width: 20px; vertical-align: top;">
                                <input id="cbDropShipping" type="checkbox">
                            </td>
                            <td style="font-size: 11px;">
                                <label for="cbDropShipping">
                                    Drop Shipping(Removes PickEgg logo from package. You can edit order shipping address
                                    on the page of order successful payment.)</label>
                            </td>
                        </tr>
                    </tbody></table>
                </div>
                <p style="display: none">
                </p>
          </div>
            <!-- yhc -->
            <span id="spcoupon"></span>
</div>
        <div class="ship_ifo_right">
            <br style="display: none" id="btu">
            <div class="prouct_sub">
                <p>
                    <label>
                        Consegna:</label>
                    <span id="LiteralShippingSubtotal">{$currency}{$a_prices-$a_price|number_format=###,2}</span>
                </p>
                <p>
                    <label>
                        Prodotti:</label>
                    <span id="LiteralProductSubtotal">{$currency} {$a_price|number_format=###,2}</span>
                </p>
              
            </div>
            <div class="clear">
            </div>
            <div class="ship_total Currencies" id="ship_total">
                Totale Ordine:
                <span id="LiteralGrandTotal"><span class="font_16 underline">{$currency}</span> <span class="font_16" id="total_js">{$a_prices|number_format=###,2}</span></span>
                <div class="Currencies_list divmove" style="display: none" id="div_Currencies_list">
                    <p id="USD">USD</p>
                    <p id="EUR">EUR</p>
                    <p id="GBP">GBP</p>
                    <p id="AUD">AUD</p>
                    <p id="CAD">CAD</p>
                </div>
            </div>
            
            <div class="clear">
			<input type="hidden" name="mo_b" id="mo_b" value="{$a_price|number_format=###,2}" />
			<input type="hidden" name="mo_b" id="mo_bb" value="{$a_price|number_format=###,2}" />
			<input type="hidden" name="proallnum" id="proallnum" value="{$proallnum}" />
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <!-- END TRANSPORTATION -->

    <div class="clear">
	
    </div>
    <!-- START CHOOSE PAY -->
    <!-- END CHOOSE PAY -->
    <div class="clear">
    </div>
    <!-- START FOOTER -->
    <!-- END FOOTER -->
    
 <script type="text/javascript">

function ChangeTotal(num)
{	var a=parseInt($(num).val());
	if(!isNaN(a))
	{
		if(a<1)
		{
			$(num).val(1);
		}else
		{
			$(num).val(a);
		}
	}else{
		$(num).val(1);
	}
	$("#form1").submit(); 
}

function shipping(val){
	
str=val.split(",");
$('#transportation').val(str[0]);
$('#logisticsprice').val(str[1]);
shipping2=parseFloat(str[1])*$('#proallnum').val();
$('#LiteralShippingSubtotal').html('{$currency} '+shipping2.toFixed(2));
mo_bb=$('#mo_bb').val();
reg=/,/gi;
mo_bb=mo_bb.replace(reg,'');
str[1]=parseFloat(mo_bb)+parseFloat(str[1])*$('#proallnum').val();
str[1]=str[1].toFixed(2);
str[1]=CommaFormatted(str[1]);
//$('#LiteralProductSubtotal').html('{$currency} '+str[1]);
$('#mo_b').val(str[1]);
$('#total_js').html($('#mo_b').val());
}

function CommaFormatted(amount) {
    var delimiter = ",";
    amount = new String(amount);
    var a = amount.split('.',2)
    var d = a[1];
    var i = parseInt(a[0]);
    if(isNaN(i)) { return ''; }
    var minus = '';
    if(i < 0) { minus = '-'; }
    i = Math.abs(i);
    var n = new String(i);
    var a = [];
    while(n.length > 3)
    {
        var nn = n.substr(n.length-3);
        a.unshift(nn);
        n = n.substr(0,n.length-3);
    }
    if(n.length > 0) { a.unshift(n); }
    n = a.join(delimiter);
    if(d.length < 1) { amount = n; }
    else { amount = n + '.' + d; }
    amount = minus + amount;
    return amount;
}



</script>
<style>
a.totalprice{text-decoration:none;color:#e56621;cursor:text;}

</style>
</div>

 </form>
 </div>

 
 <div>
    <div class="choose_pay">
        
       
     <form method="post" action="?m=Index&a=sendorder" id="form11" onsubmit="return userinfo()">
    <!-- START HEADER -->
    

    <div class="content_column">
	<p class="title">
           <img src="../Public/images/nb_3.jpg" width="52" height="38" />Indirizzo di consegna</p>
 <div class="pay_content">
  <div class="ship_ifo2">
          <TABLE width="90%" bgcolor="#e3e3e3"  align="center" cellspacing="2">
                          <TBODY bgcolor="#FFFFFF">

                          <TR bgcolor="#e3e3e3">
                            <TD width="26%" height="36" ></TD><TD width="74%" ><STRONG>Attrazioni obbligatori contrassegnati con <font color="#FF0000">*</font> sono obbligatori.</STRONG></TD>
                           
                          <TR  bgcolor="#FFFFFF">
                            <TD align="center">Nome ：</TD>
                            <TD width="74%" ><input type="text" name="first_name" id="yjfirst_name"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="first_nameshow"></span>*</FONT> </TD></TR>
                          <TR  bgcolor="#FFFFFF"">
                            <TD align="center" >Cognome ：</TD>
                            <TD bgcolor="#FFFFFF" height=13><input type="text" name="last_name" id="yjlast_name"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="last_nameshow"></span>*</FONT></TD></TR>
                         
                          <TR  bgcolor="#FFFFFF"> 
                            <TD
                               align="center" width="222">Compagnia ：</TD>
                            <TD bgcolor="#FFFFFF" height=28><input type="text"  />
                            </TD>
                          </TR>
                          <TR bgColor=#f4f4f4>
                            <TD align="center" width="222" >Indirizzo ：</TD>
                            <TD height=28><input type="text" name="address1" id="yjaddress1" size="50"/><FONT 
                              color=#ff0000><span id="address1show"></span>*</FONT></TD></TR>
                                  <TR>
                            <TD align="center" width="222" ></TD>
                            <TD height=28><input type="text" name="address2" size="50" /></TD></TR>

            <TD  align="center" width="222" bgcolor="#FFFFFF">Codice postale  ：</TD>
                            <TD height=28 bgcolor="#FFFFFF"><input type="text" name="zip" id="yjzip"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="zipshow"></span>*</FONT></TD></TR>
							   <TR bgColor=#ffffff>
                            <TD
                               align="center" width="222"  >Città ：</TD>
                            <TD bgColor=#ffffff height=28><input type="text" name="city" size="50" id="yjcity"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="cityshow"></span>*</FONT></TD></TR>
 <tr bgColor=#C8EFF1>
                <td class="td_main"   align="center" width="222" >Provincia ：</td>
                <td class="td_main STYLE1">
				<SELECT id='country' 
                              name=client_countryship length="15" onchange="updatecountry();"> 
               <option value="">Scegli un Paese</option>
               <option value="IT" selected="">Italia</option>
               <option value="AL">Albania</option>
               <option value="DZ">Algeria</option>
               <option value="AD">Andorra</option>
               <option value="AO">Angola</option>
               <option value="AI">Anguilla</option>
               <option value="AG">Antigua e Barbuda</option>
               <option value="AN">Antille olandesi</option>
               <option value="SA">Arabia Saudita</option>
               <option value="AR">Argentina</option>
               <option value="AM">Armenia</option>
               <option value="AW">Aruba</option>
               <option value="AU">Australia</option>
               <option value="AT">Austria</option>
               <option value="BS">Bahamas</option>
               <option value="BH">Bahrein</option>
               <option value="BB">Barbados</option>
               <option value="BE">Belgio</option>
               <option value="BZ">Belize</option>
               <option value="BJ">Benin</option>
               <option value="BM">Bermuda</option>
               <option value="BT">Bhutan</option>
               <option value="BO">Bolivia</option>
               <option value="BA">Bosnia ed Erzegovina</option>
               <option value="BW">Botswana</option>
               <option value="BR">Brasile</option>
               <option value="BN">Brunei</option>
               <option value="BG">Bulgaria</option>
               <option value="BF">Burkina Faso</option>
               <option value="BI">Burundi</option>
               <option value="KH">Cambogia</option>
               <option value="CA">Canada</option>
               <option value="CV">Capo Verde</option>
               <option value="TD">Ciad</option>
               <option value="CL">Cile</option>
               <option value="C2">Cina</option>
               <option value="CY">Cipro</option>
               <option value="VA">Città del Vaticano</option>
               <option value="CO">Colombia</option>
               <option value="KM">Comore</option>
               <option value="KR">Corea del Sud</option>
               <option value="CR">Costa Rica</option>
               <option value="HR">Croazia</option>
               <option value="DK">Danimarca</option>
               <option value="DM">Dominica</option>
               <option value="EC">Ecuador</option>
               <option value="SV">El Salvador</option>
               <option value="AE">Emirati Arabi Uniti</option>
               <option value="ER">Eritrea</option>
               <option value="EE">Estonia</option>
               <option value="ET">Etiopia</option>
               <option value="FJ">Figi</option>
               <option value="PH">Filippine</option>
               <option value="FI">Finlandia</option>
               <option value="FR">Francia</option>
               <option value="GM">Gambia</option>
               <option value="DE">Germania</option>
               <option value="JM">Giamaica</option>
               <option value="JP">Giappone</option>
               <option value="GI">Gibilterra</option>
               <option value="DJ">Gibuti</option>
               <option value="JO">Giordania</option>
               <option value="GR">Grecia</option>
               <option value="GD">Grenada</option>
               <option value="GL">Groenlandia</option>
               <option value="GP">Guadalupa</option>
               <option value="GT">Guatemala</option>
               <option value="GF">Guayana Francese</option>
               <option value="GN">Guinea</option>
               <option value="GW">Guinea-Bissau</option>
               <option value="GY">Guyana</option>
               <option value="HN">Honduras</option>
               <option value="HK">Hong Kong</option>
               <option value="IN">India</option>
               <option value="ID">Indonesia</option>
               <option value="IE">Irlanda</option>
               <option value="IS">Islanda</option>
               <option value="KY">Isole Cayman</option>
               <option value="CK">Isole Cook</option>
               <option value="FK">Isole Falkland</option>
               <option value="FO">Isole Faroe</option>
               <option value="PN">Isole Pitcairn</option>
               <option value="SB">Isole Salomone</option>
               <option value="TC">Isole Turks e Caicos</option>
               <option value="VG">Isole Vergini britanniche</option>
               <option value="IL">Israele</option>
               <option value="KZ">Kazakistan</option>
               <option value="KE">Kenya</option>
               <option value="KG">Kirghizistan</option>
               <option value="KI">Kiribati</option>
               <option value="KW">Kuwait</option>
               <option value="LA">Laos</option>
               <option value="LS">Lesotho</option>
               <option value="LV">Lettonia</option>
               <option value="LI">Liechtenstein</option>
               <option value="LT">Lituania</option>
               <option value="LU">Lussemburgo</option>
               <option value="MG">Madagascar</option>
               <option value="MW">Malawi</option>
               <option value="MY">Malaysia</option>
               <option value="MV">Maldive</option>
               <option value="ML">Mali</option>
               <option value="MT">Malta</option>
               <option value="MA">Marocco</option>
               <option value="MH">Marshall</option>
               <option value="MQ">Martinica</option>
               <option value="MR">Mauritania</option>
               <option value="MU">Mauritius</option>
               <option value="YT">Mayotte</option>
               <option value="MX">Messico</option>
               <option value="FM">Micronesia</option>
               <option value="MN">Mongolia</option>
               <option value="MS">Montserrat</option>
               <option value="MZ">Mozambico</option>
               <option value="NA">Namibia</option>
               <option value="NR">Nauru</option>
               <option value="NP">Nepal</option>
               <option value="NI">Nicaragua</option>
               <option value="NE">Niger</option>
               <option value="NU">Niue</option>
               <option value="NF">Norfolk</option>
               <option value="NO">Norvegia</option>
               <option value="NC">Nuova Caledonia</option>
               <option value="NZ">Nuova Zelanda</option>
               <option value="OM">Oman</option>
               <option value="NL">Paesi Bassi</option>
               <option value="PW">Palau</option>
               <option value="PA">Panama</option>
               <option value="PG">Papua Nuova Guinea</option>
               <option value="PE">Perù</option>
               <option value="PF">Polinesia Francese</option>
               <option value="PL">Polonia</option>
               <option value="PT">Portogallo</option>

</SELECT>   

				</td>
            </tr>
                          <TR bgColor=#f4f4f4>
                            <TD  align="center" width="222">Telefono ：</TD>
                            <TD height=28><INPUT size=5 type="text" name="night_phone_a" id="yjnight_phone_a">
                             <INPUT size=6 type="text" name="night_phone_b" id="yjnight_phone_b"> 
                             <INPUT size=6 type="text" name="night_phone_c" id="yjnight_phone_c">&nbsp;&nbsp;
                             <FONT color=#ff0000>
                             <span id="night_phone_ashow"></span>
                             <span id="night_phone_bshow"></span>
                             <span id="night_phone_cshow"></span>
                             </FONT></TD>
                          </TR>
                          <TR bgcolor="#FFFFFF">
                            <TD
                               align="center" width="222">Indirizzo e-mail ：</TD>
                            <TD height=28><input type="text" name="email" id="yzemail"/>&nbsp;&nbsp;<FONT 
                              color=#ff0000><span id="emailshow"></span>* </FONT></TD></TR>
                       </TBODY></TABLE>
    <p>
     <input type="hidden" name="country" id="recountry" value="" />
      <input type="hidden" name="tracking" id="tracking" value="1" />
      <input type="hidden" name="destination" id="destination" value="Afghanistan" />
      <input type="hidden" name="transportation" id="transportation" value="Air Mail" />
      <input type="hidden" name="logisticsprice" id="logisticsprice" value="{@a.logisticsprice1}" />
      <input type="hidden" name="domain" id="domain" value="{@a.domain}" />
      <input type="hidden" name="currency_code" id="currency_code" value="{$currency_code}" />
    </p>
      <div class="ship_ifo1_a" id="btn">
		<input type="image" src="../Public/images/next_step_it.gif" align="center"/></div>
  </div>

  
</div>
 
 
</form></div></div>
<div class="foot_cart">
          <img src="../Public/images/verisign.gif" align="left"  />
    </div>

<script type="text/javascript"><!--
 function showBilling(){
	    var bln_check = $('#isSame').attr('checked');
	    if(bln_check){
	        $('#div2').show();
	    }else{     
	        $('#div2').hide();   
	    }
	}

 function updatecountry(){
	 	
		document.getElementById('recountry').value=document.getElementById("country").value;
	}


 
 var yjfirst_name=document.getElementById('yjfirst_name');
 var first_nameshow=document.getElementById('first_nameshow');
 var yjlast_name=document.getElementById('yjlast_name');
 var last_nameshow=document.getElementById('last_nameshow');
 var yjaddress1=document.getElementById('yjaddress1');
 var address1show=document.getElementById('address1show');
 var yjzip=document.getElementById('yjzip');
 var zipshow=document.getElementById('zipshow');
 var yjcity=document.getElementById('yjcity');
 var cityshow=document.getElementById('cityshow');
 var yjnight_phone_a=document.getElementById('yjnight_phone_a');
 var yjnight_phone_b=document.getElementById('yjnight_phone_b');
 var yjnight_phone_c=document.getElementById('yjnight_phone_c');
 var night_phone_ashow=document.getElementById('night_phone_ashow');
 var night_phone_bshow=document.getElementById('night_phone_bshow');
 var night_phone_cshow=document.getElementById('night_phone_cshow');
 var oEmail=document.getElementById('yzemail');
 var emailshow=document.getElementById('emailshow');
 
 
	function userinfo(){
		 var user=new RegExp(/^[\w]/);
		 var email=new RegExp(/\w+.*@\w+.*\.\w+.*/);
		 var numzz=new RegExp(/^[0-9]*$/);
		 var address=new RegExp(/[\w]/);
	
		 if(!user.test(yjfirst_name.value))
		 {
			 first_nameshow.innerHTML='Inserisci il tuo nome！';
			   return false;
		 }else{first_nameshow.innerHTML='';}
		if(!user.test(yjlast_name.value))
		 {
			 last_nameshow.innerHTML='Inserisci il tuo cognome！';
			   return false;
		 }else {last_nameshow.innerHTML='';}
		if(!address.test(yjaddress1.value))
		 {
			 address1show.innerHTML="Inserisci l'indirizzo di spedizione！";
			   return false;
		 }else {address1show.innerHTML='';}
		if(!user.test(yjzip.value))
		 {
			 zipshow.innerHTML='Si prega di inserire un codice postale！';
			   return false;
		 }else {zipshow.innerHTML='';}
		if(!user.test(yjcity.value))
		 {
			 cityshow.innerHTML='Inserisci il tuo città！';
			   return false;
		 }else {cityshow.innerHTML='';}
		if(!numzz.test(yjnight_phone_a.value))
		 {
			 night_phone_ashow.innerHTML='Inserisci il tuo numero di telefono！';
			   return false;
		 }else {night_phone_ashow.innerHTML='';}
		if(!numzz.test(yjnight_phone_b.value))
		 {
			 night_phone_bshow.innerHTML='Inserisci il tuo numero di telefono！';
			   return false;
		 }else {night_phone_bshow.innerHTML='';}
		if(!numzz.test(yjnight_phone_c.value))
		 {
			 night_phone_cshow.innerHTML='Inserisci il tuo numero di telefono！';
			   return false;
		 }else {night_phone_cshow.innerHTML='';}
		if(!email.test(oEmail.value))
		 {
			emailshow.innerHTML='Si prega di inserire un indirizzo e-mail！';
			   return false;
		  }else{emailshow.innerHTML='';}
	}
	
--></script>
 </body></html>